package com.cangshi.entity;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;

public class Activity {
    private Integer activityId;

    private Date activityInitTime;

    @NotNull(message = "活动标题不能为空")
    @Size(min=10, max=50, message="活动标题长度应在10-50")
    private String activityTitle;

    @NotNull(message = "活动详情不能为空")
    @Size(min=10, max=500, message="活动标题长度应在10-500")
    private String activityDetail;

    private String activityImages;

    private Integer activityStatus;

    @NotNull(message = "活动对应团id不能为空")
    private Integer activityGroupId;

    public Integer getActivityId() {
        return activityId;
    }

    public void setActivityId(Integer activityId) {
        this.activityId = activityId;
    }

    public Date getActivityInitTime() {
        return activityInitTime;
    }

    public void setActivityInitTime(Date activityInitTime) {
        this.activityInitTime = activityInitTime;
    }

    public String getActivityTitle() {
        return activityTitle;
    }

    public void setActivityTitle(String activityTitle) {
        this.activityTitle = activityTitle == null ? null : activityTitle.trim();
    }

    public String getActivityDetail() {
        return activityDetail;
    }

    public void setActivityDetail(String activityDetail) {
        this.activityDetail = activityDetail == null ? null : activityDetail.trim();
    }

    public String getActivityImages() {
        return activityImages;
    }

    public void setActivityImages(String activityImages) {
        this.activityImages = activityImages == null ? null : activityImages.trim();
    }

    public Integer getActivityStatus() {
        return activityStatus;
    }

    public void setActivityStatus(Integer activityStatus) {
        this.activityStatus = activityStatus;
    }

    public Integer getActivityGroupId() {
        return activityGroupId;
    }

    public void setActivityGroupId(Integer activityGroupId) {
        this.activityGroupId = activityGroupId;
    }
}